package him.action.coursemanage;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import him.action.Action;
import him.action.ActionForward;
import him.dto.coursemanage.SubjectDTO;
import him.service.SubjectService;
import him.serviceimple.SubjectServiceImple;

public class SubjectUpdateBfAction implements Action {

	@Override
	public ActionForward execute(HttpServletRequest request,
			HttpServletResponse response) {
		ActionForward actforward = new ActionForward();
		SubjectService service = SubjectServiceImple.getInstance();
		SubjectDTO dto = new SubjectDTO();
		
		String detailcode = request.getParameter("detailcode");
		dto.setDetailcode(detailcode);
		
		dto = service.getSubjectDetail(dto);
		
		request.setAttribute("dto", dto);
		actforward.setUrl("subjectupdatebf");
		return actforward;
	}

}
